package cn.itsource.pethome.base.mapper;

import cn.itsource.pethome.base.query.Page;

import java.util.List;

public interface BaseMapper<T> {
    List<T> queryAll();

    List<T> pageQueryAll(Page query);

    Long count(Page query);

    T queryOne(Long id);

    void insert(T t);

    void update(T t);

    void delete(Long id);

    void bulkRemove(List<Long> ids);
}
